package com.designlollipopdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.designlollipopdemo.commonbar.TitleBarActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }


    public void test(View view) {
        switch (view.getId()) {
            case R.id.CoordinatorLayout:
                startActivity(new Intent(this, Actvity_CoordinatorLayout.class));
                break;
            case R.id.btn2:
                startActivity(new Intent(this, Activity_AppBarLayout.class));
                break;
            case R.id.btn3:
                startActivity(new Intent(this, Actvity_CollapsingToolbarLayout.class));
                break;
            case R.id.btn4:
                startActivity(new Intent(this, ToolbarActivity.class));
                break;
                case R.id.btn5:
                startActivity(new Intent(this, NormalToolBarActivity.class));
                break;
                case R.id.btn6:
                startActivity(new Intent(this, TitleBarActivity.class));
                break;
        }
    }
}
